package com.xiamaliu;

public class ValidateHandler extends Handler {
    @Override
    public void doHandler(Member member) {
        if (member.getLoginName() == null || member.getLoginPass() == null) {
            System.out.println("用户名或密码错误");
            return;
        }
        System.out.println("用户名和密码校验成功，可以继续往下执行");
        chain.doHandler(member);
    }
}
